package edu.uw.tcss360.group6.gui.DataCards;


import edu.uw.tcss360.group6.gui.Actions.*;

import javax.swing.*;


/**
 * Created with IntelliJ IDEA.
 * edu.uw.tcss360.group6.model.User: Lemtzas
 * Author: David Sharer
 * Author: Mais Abdulwahab
 * Date: 2/20/13
 * Time: 9:46 PM
 * To change this template use File | Settings | File Templates.
 */
@SuppressWarnings("serial")
public class AttendeeCard extends DataCard {
	private JButton my_submit_weave_draft;
    public AttendeeCard() {
        super("Login");
        this.add(new JButton(new LogoutAction()));
        this.add(new JButton(new BackAction()));
        this.add(new JButton(new HomeAction()));
        this.add(new JButton(new EntryAction())); // an attendee has to be able to submit an entry-Mais
        my_submit_weave_draft  = new JButton(new WeavingDraftSubmissionAction());
        
        my_submit_weave_draft .setEnabled(false);
        this.add(my_submit_weave_draft );
    }
    public void enableSubmission()
    {
    	my_submit_weave_draft.setEnabled(true);
    }
    public void disableSubmission()
    {
    	my_submit_weave_draft.setEnabled(false);
    }
}
